package com.kfm.pm;

public class Test02 {

    public static void main(String[] args) {
        int a = 0;
        int b = 1;
        // 运行时异常
        try {
            System.out.println(b / a);
            System.out.println("begin");
        } catch (ArithmeticException e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }

        System.out.println("计算结束");
    }


}
